package com.seelyn.rhea.mvc.internal.matcher;

/**
 * 操作匹配
 * @author slacrey
 * @since 2016/1/21
 */
public interface OperationMatcher<T> extends Matcher<T> {
    /**
     * 返回新的匹配
     * @param other {@code other}
     * @return new matcher
     */
    Matcher<T> and(Matcher<? super T> other);

    /**
     *
     * @param other {@code other}
     * @return new matcher
     */
    Matcher<T> or(Matcher<? super T> other);
}
